How can I know using DXL if a document in the current module is selected? I can navigate using DXL through all docuemnts in the current module but how do I know if the document is selected? |
Re: DXL code to know if a document is selected
Your words are not quite right. A 'Document' is the same as a 'Module'. You seem to be asking 'How can I tell which Modules are selected in the current Folder?'.
Skip skp = getSelectedItems()
// Skip list of DOORS explorer selected items.
// KEY: 'int' Position selected in right pane, always -1 when left pane is selected
// DATA: is 'Item'
Item itm
int Position
for itm in skp do
{ Position = (int key skp)
print Position "\t" name(itm) "\n"
}
delete(skp)
|